﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WmsProductionPickingOrderEdit.aspx.cs" Inherits="JYH.Web.MES.WMS.UI.WmsProductionPickingOrderEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>领料编辑页</title>
    <script type="text/javascript" src="../JS/WmsProductionPickingOrderEdit.js"></script>
</head>
<body>
    <form runat="server" id="ff">
        <%--排序隐藏值--%>
        <asp:HiddenField runat="server" ID="hSort" />
        <asp:HiddenField runat="server" ID="hOrder" />
        <asp:HiddenField runat="server" ID="hTradeOrderID" />
                <asp:HiddenField runat="server" ID="hTradeSourceID" />
           <asp:HiddenField runat="server" ID="hFromWarehouseID" />
           <asp:HiddenField runat="server" ID="hMaterialID" />
        <div class="pagebox">
            <div class="cbox">
                <!--工具栏-->
                <div class="easyui-panel" style="padding: 15px; width: 100%;">
                    <div id="tb">
                        <ul class="flist">
                            <li>
                                <input class="easyui-textbox" type="text" id="tTradeOrderNO" runat="server" data-options="prompt:'Save automatically generated',label:'OrderNO:'" style="width: 350px; height: 35px; line-height: 35px;" />
                            </li>
                            <li>
                                <input class="easyui-datebox" id="tCreateTime" value="1" data-options="prompt:'TradeDate',label:'TradeDate:',formatter:myformatter,parser:myparser" style="width: 350px; height: 35px;" required />
                            </li>
                            <li>
                                <input class="easyui-textbox" type="text" id="Text1" runat="server" data-options="label:'SourceOrder:'" style="width: 350px; height: 35px; line-height: 35px;" />
                            </li>
                            <%-- <li>
     <input id="tFromWarehouseID" style="width: 250px; height: 35px; line-height: 35px;" />
 </li>
 <a href="javascript:;" class="easyui-linkbutton c1" onclick="ItemSave()" id="SaveItems" style="margin-left: 30px">SAVE</a>--%>
                        </ul>
                        <ul class="flist">
                            <li>
                                <input id="tFromWarehouseID" style="width: 350px; height: 35px; line-height: 35px;" />
                            </li>
                            <a href="javascript:;" class="easyui-linkbutton c1" onclick="ItemSave()" id="SaveItems" style="margin-left: 30px">SAVE</a>
                        </ul>
                    </div>

                </div>
            </div>
            <div class="cbox">
                <div id="shows" class="easyui-tabs" data-options="border:1" style="width: 100%;">
                    <div title="Source List">
                        <table id="ItemDate"></table>
                    </div>
                    <div title="Code List">
                        <table id="CodeItem"></table>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <div id="toolbar" style="padding: 5px; height: auto">
        <div style="margin-bottom: 5px;">
            <ul class="flist">
                <li>
                    <input class="easyui-textbox" type="text" id="txtProduct" data-options="prompt:'Name/Number'" style="width: 250px; height: 35px; line-height: 35px;" />
                </li>
                <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" runat="server" id="SelectItem" onclick="SInItem()">Search</a>
                     <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" runat="server" id="A3" onclick="addBlankRow()">Add</a>
                     <a href="#" class="easyui-linkbutton" iconcls="icon-clear" plain="true" runat="server" id="A2" onclick="Delete()">Delete</a>
              
            </ul>
        </div>
    </div>

    <div id="CodeBar" style="padding: 5px; height: auto">
        <div style="margin-bottom: 5px;">
            <ul class="flist">
                <li>
                    <input class="easyui-textbox" type="text" id="txtCodeNO" data-options="prompt:'Material/BarcodeNO'" style="width: 250px; height: 35px; line-height: 35px;" />
                </li>
                <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" runat="server" id="A1" onclick="CodeItem()">Search</a>
            </ul>
        </div>
    </div>

        <div id="dd" class="easyui-drawer f-column" style="width: 550px;">
        <div style="line-height: 30px; text-align: center; border-bottom: 1px solid #ddd">New List</div>
        <div class="f-full">

            <ul style="margin: 10px;">

                <li style="margin-bottom: 15px; padding-left: 10px;" id="s">
                    <input class="easyui-textbox" id="tMaterialNO" style="width: 45%; height: 32px;" data-options="label:'MaterialNO:',prompt:'Double click'" runat="server" required="required" />
                    &nbsp&nbsp&nbsp&nbsp
                 <input class="easyui-textbox" id="tBatchNO" style="width: 45%; height: 32px;" data-options="label:'物料批号:'" runat="server" required="required" />
                </li>
                <li style="margin-bottom: 15px; padding-left: 10px;">
                    <input class="easyui-textbox" id="tMaterialName" style="width: 95%; height: 32px;" data-options="label:'MaterialName:'" runat="server" readonly="true" />
                </li>
                <li style="margin-bottom: 15px; padding-left: 10px;">
                    <input class="easyui-textbox" id="tMaterialDesc" style="width: 95%; height: 32px;" data-options="label:'MaterialDesc:'" readonly="true" />
                </li>
                <li style="margin-bottom: 15px; padding-left: 10px;" id="sk">
                    <input class="easyui-textbox" id="tStorage" style="width: 45%; height: 32px;" data-options="label:'StorageNO:'" runat="server"  required/>
                    &nbsp&nbsp&nbsp&nbsp
                   <input class="easyui-textbox" id="tQty" style="width: 45%; height: 32px;" data-options="label:'Qty:'" runat="server" inputmode="numeric" type="number" value="1" required="required" />
                </li>

            </ul>
            <div style="padding: 10px;">
                <span class="tip-text" style="font-size: 12px; color: #888;">Tip: The storage location needs to be in the document warehouse。
                </span>
            </div>
        </div>
        <div style="padding: 5px; text-align: center; border-top: 1px solid #ddd">
            <a href="javascript:;" id="BtnSave" class="easyui-linkbutton c1" onclick="ItemBarCodeSave()">Add</a>
            <a href="javascript:;" class="easyui-linkbutton" id="BtnCancle" onclick="ItemClear()">Cancel</a>
        </div>
    </div>
       <%--    物料检索dialog--%>
    <div id="MaterialDialog" class="easyui-dialog" title="Part List" style="width: 700px; height: 520px; padding: 5px" data-options="closed:true,modal:true">
        <div class="cbox">
            <ul class="flist">
                <li>
                    <input class="easyui-textbox" type="text" id="DMaterialNO" data-options="prompt:'MaterialNO'" style="width: 350px; height: 35px; line-height: 35px;" /></li>
                <li>
                    <input class="easyui-textbox" type="text" id="DMaterialName" data-options="prompt:'MaterialName'" style="width: 350px; height: 35px; line-height: 35px;" />
                    <a href="javascript:void(0)" id="DMSearch" class="easyui-linkbutton c1" onclick="MaterialLocal()" data-options="iconCls:'icon-sousuo',selected:true">Search</a>
                </li>
            </ul>
        </div>
        <div class="cbox">
            <!--查询结果清单-->
            <table id="tts">
            </table>
        </div>
    </div>

    <div id="StockMaterial" class="easyui-dialog" title="Part List" style="width: 700px; height: 520px; padding: 5px" data-options="closed:true,modal:true">
        <div class="cbox">
            <ul class="flist">
                <li>
                    <input class="easyui-textbox" type="text" id="SMaterialNO" readonly="true" data-options="prompt:'MaterialNO'" style="width: 250px; height: 35px; line-height: 35px;" />
                    <input class="easyui-textbox" type="text" id="SWarehouseNO" readonly="true" data-options="prompt:'WarehouseNO'" style="width: 250px; height: 35px; line-height: 35px;" />

                </li>
                <li>

                    <a href="javascript:void(0)" id="SMSearch" class="easyui-linkbutton c1" onclick="StockMaterialQuery()" data-options="iconCls:'icon-sousuo',selected:true">Search</a>
                </li>
            </ul>
        </div>
        <div class="cbox">
            <!--查询结果清单-->
            <table id="tms">
            </table>
        </div>
    </div>


</body>
</html>
